//package p.ithorns.framework.common.codec;
//
//import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
//
///**
// * BPwdEncoder
// *
// * @author ithorns
// * @version 1.0
// * @date 2020/9/3 16:39
// */
//public class BPwdEncoder {
//
//    private static final BCryptPasswordEncoder ENCODER = new BCryptPasswordEncoder();
//
//    public static String bcryptPassword(String password){
//        return ENCODER.encode(password);
//    }
//
//    public static boolean matches(CharSequence rawPassword, String encodedPassword){
//        return ENCODER.matches(rawPassword,encodedPassword);
//    }
//}